package com.eke.bean;
import java.sql.Timestamp;
import com.jason.dbhelper2.annotations.Column;
import com.jason.dbhelper2.annotations.Table;
@Table("article")	
public class Article{
	/**
	 * 文章id
	 *
	 */
	@Column("article_id")	
	private Integer articleId;
	/**
	 * 
	 *
	 */
	@Column("article_type_id")	
	private Integer articleTypeId;
	/**
	 * 用户ID
	 *
	 */
	@Column("user_id")	
	private Integer userId;
	/**
	 * 文章类型（1 文章 2 问题）
	 *
	 */
	@Column("article_type")	
	private Integer articleType;
	/**
	 * 标题
	 *
	 */
	@Column("article_title")	
	private String articleTitle;
	/**
	 * 内容
	 *
	 */
	@Column("article_content")	
	private String articleContent;
	/**
	 * 发布时间
	 *
	 */
	@Column("release_time")	
	private Timestamp releaseTime;
	/**
	 * 最后更新时间
	 *
	 */
	@Column("last_update_time")	
	private Timestamp lastUpdateTime;
	/**
	 * 查看人数
	 *
	 */
	@Column("read_number")	
	private Integer readNumber;
	/**
	 * 文章状态(0公开 1隐私 2置顶)
	 *
	 */
	@Column("article_state")	
	private Integer articleState;
	/**
	 * 评论数量
	 *
	 */
	@Column("comment_number")	
	private Integer commentNumber;
	/**			
	 * 积分
	 *
	 */
	@Column("interal")	
	private Integer interal;
	/**
	 * 问题状态（0解决 1未解决）
	 *
	 */
	@Column("question_state")	
	private Integer questionState;
	/**
	 * 文章图片url
	 *
	 */
	@Column("article_image")	
	private String articleImage;
	public Article(){
	}
	public Article(Integer articleId){
		this.articleId=articleId;
	}
	public Article(Integer articleId,Integer articleTypeId){
		this.articleId=articleId;
		this.articleTypeId=articleTypeId;
	}
	public Article(Integer articleId,Integer articleTypeId,Integer userId){
		this.articleId=articleId;
		this.articleTypeId=articleTypeId;
		this.userId=userId;
	}
	public Article(Integer articleId,Integer articleTypeId,Integer userId,Integer articleType){
		this.articleId=articleId;
		this.articleTypeId=articleTypeId;
		this.userId=userId;
		this.articleType=articleType;
	}
	public Article(Integer articleId,Integer articleTypeId,Integer userId,Integer articleType,String articleTitle){
		this.articleId=articleId;
		this.articleTypeId=articleTypeId;
		this.userId=userId;
		this.articleType=articleType;
		this.articleTitle=articleTitle;
	}
	public Article(Integer articleId,Integer articleTypeId,Integer userId,Integer articleType,String articleTitle,String articleContent){
		this.articleId=articleId;
		this.articleTypeId=articleTypeId;
		this.userId=userId;
		this.articleType=articleType;
		this.articleTitle=articleTitle;
		this.articleContent=articleContent;
	}
	public Article(Integer articleId,Integer articleTypeId,Integer userId,Integer articleType,String articleTitle,String articleContent,Timestamp releaseTime){
		this.articleId=articleId;
		this.articleTypeId=articleTypeId;
		this.userId=userId;
		this.articleType=articleType;
		this.articleTitle=articleTitle;
		this.articleContent=articleContent;
		this.releaseTime=releaseTime;
	}
	public Article(Integer articleId,Integer articleTypeId,Integer userId,Integer articleType,String articleTitle,String articleContent,Timestamp releaseTime,Timestamp lastUpdateTime){
		this.articleId=articleId;
		this.articleTypeId=articleTypeId;
		this.userId=userId;
		this.articleType=articleType;
		this.articleTitle=articleTitle;
		this.articleContent=articleContent;
		this.releaseTime=releaseTime;
		this.lastUpdateTime=lastUpdateTime;
	}
	public Article(Integer articleId,Integer articleTypeId,Integer userId,Integer articleType,String articleTitle,String articleContent,Timestamp releaseTime,Timestamp lastUpdateTime,Integer readNumber){
		this.articleId=articleId;
		this.articleTypeId=articleTypeId;
		this.userId=userId;
		this.articleType=articleType;
		this.articleTitle=articleTitle;
		this.articleContent=articleContent;
		this.releaseTime=releaseTime;
		this.lastUpdateTime=lastUpdateTime;
		this.readNumber=readNumber;
	}
	public Article(Integer articleId,Integer articleTypeId,Integer userId,Integer articleType,String articleTitle,String articleContent,Timestamp releaseTime,Timestamp lastUpdateTime,Integer readNumber,Integer articleState){
		this.articleId=articleId;
		this.articleTypeId=articleTypeId;
		this.userId=userId;
		this.articleType=articleType;
		this.articleTitle=articleTitle;
		this.articleContent=articleContent;
		this.releaseTime=releaseTime;
		this.lastUpdateTime=lastUpdateTime;
		this.readNumber=readNumber;
		this.articleState=articleState;
	}
	public Article(Integer articleId,Integer articleTypeId,Integer userId,Integer articleType,String articleTitle,String articleContent,Timestamp releaseTime,Timestamp lastUpdateTime,Integer readNumber,Integer articleState,Integer commentNumber){
		this.articleId=articleId;
		this.articleTypeId=articleTypeId;
		this.userId=userId;
		this.articleType=articleType;
		this.articleTitle=articleTitle;
		this.articleContent=articleContent;
		this.releaseTime=releaseTime;
		this.lastUpdateTime=lastUpdateTime;
		this.readNumber=readNumber;
		this.articleState=articleState;
		this.commentNumber=commentNumber;
	}
	public Article(Integer articleId,Integer articleTypeId,Integer userId,Integer articleType,String articleTitle,String articleContent,Timestamp releaseTime,Timestamp lastUpdateTime,Integer readNumber,Integer articleState,Integer commentNumber,Integer interal){
		this.articleId=articleId;
		this.articleTypeId=articleTypeId;
		this.userId=userId;
		this.articleType=articleType;
		this.articleTitle=articleTitle;
		this.articleContent=articleContent;
		this.releaseTime=releaseTime;
		this.lastUpdateTime=lastUpdateTime;
		this.readNumber=readNumber;
		this.articleState=articleState;
		this.commentNumber=commentNumber;
		this.interal=interal;
	}
	public Article(Integer articleId,Integer articleTypeId,Integer userId,Integer articleType,String articleTitle,String articleContent,Timestamp releaseTime,Timestamp lastUpdateTime,Integer readNumber,Integer articleState,Integer commentNumber,Integer interal,Integer questionState){
		this.articleId=articleId;
		this.articleTypeId=articleTypeId;
		this.userId=userId;
		this.articleType=articleType;
		this.articleTitle=articleTitle;
		this.articleContent=articleContent;
		this.releaseTime=releaseTime;
		this.lastUpdateTime=lastUpdateTime;
		this.readNumber=readNumber;
		this.articleState=articleState;
		this.commentNumber=commentNumber;
		this.interal=interal;
		this.questionState=questionState;
	}
	public Article(Integer articleId,Integer articleTypeId,Integer userId,Integer articleType,String articleTitle,String articleContent,Timestamp releaseTime,Timestamp lastUpdateTime,Integer readNumber,Integer articleState,Integer commentNumber,Integer interal,Integer questionState,String articleImage){
		this.articleId=articleId;
		this.articleTypeId=articleTypeId;
		this.userId=userId;
		this.articleType=articleType;
		this.articleTitle=articleTitle;
		this.articleContent=articleContent;
		this.releaseTime=releaseTime;
		this.lastUpdateTime=lastUpdateTime;
		this.readNumber=readNumber;
		this.articleState=articleState;
		this.commentNumber=commentNumber;
		this.interal=interal;
		this.questionState=questionState;
		this.articleImage=articleImage;
	}
	/**
	 * 获取文章id
	 */
	public Integer getArticleId(){
		return articleId;
	}
	/**
	 * 设置文章id
	 */
	public void setArticleId(Integer articleId){
		this.articleId=articleId;
	}
	/**
	 * 获取
	 */
	public Integer getArticleTypeId(){
		return articleTypeId;
	}
	/**
	 * 设置
	 */
	public void setArticleTypeId(Integer articleTypeId){
		this.articleTypeId=articleTypeId;
	}
	/**
	 * 获取用户ID
	 */
	public Integer getUserId(){
		return userId;
	}
	/**
	 * 设置用户ID
	 */
	public void setUserId(Integer userId){
		this.userId=userId;
	}
	/**
	 * 获取文章类型（1 文章 2 问题）
	 */
	public Integer getArticleType(){
		return articleType;
	}
	/**
	 * 设置文章类型（1 文章 2 问题）
	 */
	public void setArticleType(Integer articleType){
		this.articleType=articleType;
	}
	/**
	 * 获取标题
	 */
	public String getArticleTitle(){
		return articleTitle;
	}
	/**
	 * 设置标题
	 */
	public void setArticleTitle(String articleTitle){
		this.articleTitle=articleTitle;
	}
	/**
	 * 获取内容
	 */
	public String getArticleContent(){
		return articleContent;
	}
	/**
	 * 设置内容
	 */
	public void setArticleContent(String articleContent){
		this.articleContent=articleContent;
	}
	/**
	 * 获取发布时间
	 */
	public Timestamp getReleaseTime(){
		return releaseTime;
	}
	/**
	 * 设置发布时间
	 */
	public void setReleaseTime(Timestamp releaseTime){
		this.releaseTime=releaseTime;
	}
	/**
	 * 获取最后更新时间
	 */
	public Timestamp getLastUpdateTime(){
		return lastUpdateTime;
	}
	/**
	 * 设置最后更新时间
	 */
	public void setLastUpdateTime(Timestamp lastUpdateTime){
		this.lastUpdateTime=lastUpdateTime;
	}
	/**
	 * 获取查看人数
	 */
	public Integer getReadNumber(){
		return readNumber;
	}
	/**
	 * 设置查看人数
	 */
	public void setReadNumber(Integer readNumber){
		this.readNumber=readNumber;
	}
	/**
	 * 获取文章状态(0公开 1隐私 2置顶)
	 */
	public Integer getArticleState(){
		return articleState;
	}
	/**
	 * 设置文章状态(0公开 1隐私 2置顶)
	 */
	public void setArticleState(Integer articleState){
		this.articleState=articleState;
	}
	/**
	 * 获取评论数量
	 */
	public Integer getCommentNumber(){
		return commentNumber;
	}
	/**
	 * 设置评论数量
	 */
	public void setCommentNumber(Integer commentNumber){
		this.commentNumber=commentNumber;
	}
	/**
	 * 获取积分
	 */
	public Integer getInteral(){
		return interal;
	}
	/**
	 * 设置积分
	 */
	public void setInteral(Integer interal){
		this.interal=interal;
	}
	/**
	 * 获取问题状态（0解决 1未解决）
	 */
	public Integer getQuestionState(){
		return questionState;
	}
	/**
	 * 设置问题状态（0解决 1未解决）
	 */
	public void setQuestionState(Integer questionState){
		this.questionState=questionState;
	}
	/**
	 * 获取文章图片url
	 */
	public String getArticleImage(){
		return articleImage;
	}
	/**
	 * 设置文章图片url
	 */
	public void setArticleImage(String articleImage){
		this.articleImage=articleImage;
	}
	
		

	@Override
	public String toString() {
		return "Article [articleId=" + articleId+",articleTypeId=" + articleTypeId+",userId=" + userId+",articleType=" + articleType+",articleTitle=" + articleTitle+",articleContent=" + articleContent+",releaseTime=" + releaseTime+",lastUpdateTime=" + lastUpdateTime+",readNumber=" + readNumber+",articleState=" + articleState+",commentNumber=" + commentNumber+",interal=" + interal+",questionState=" + questionState+",articleImage=" + articleImage+"]";
	}





}